
<table ui-table="orderParams" style="margin-top:20px; ">
    <thead>
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>标识</th>
        <th>状态</th>
        <th>类型</th>
        <th>跳转链接</th>
        <th>添加时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.siteName}}</td>
        <td>{{item.nid}}</td>
        <td>{{item.status | articleStatus}}</td>
        <td>{{item.style}}</td>
        <td>{{item.url}}</td>
        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
         <td>
         	<a ng-click="modifyModal(item.nid)">编辑</a>
         </td>
    </tr>
    </tbody>
</table>
<modal title="编辑" visible="detailsModal">
    <form class="form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">名称：</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="list.siteName" >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">标识：</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="list.nid" >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">类型：</label>

                        <div class="col-md-8 triangle-left">
                            <select class="form-control" ng-model="list.style">
                                <option value="0">单页文章</option>
                                <option value="1">列表</option>
                                <option value="2">站内链接</option>
                                <option value="3">站外链接</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">跳转链接：</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="list.url" >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">排序：</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="list.sort" >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">状态：</label>

                        <div class="col-md-8 triangle-left">
                            <select class="form-control" ng-model="list.status">
                                <option value="1">显示</option>
                                <option value="0">隐藏</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="form-group">
                        <label class="control-label col-md-2">描述：</label>
                        <div class="col-md-10">
                            <div style="margin-bottom:1.25rem;height: 300px" class="ueditor" config="ueditor_config" ng-model="list.content" ></div>
                        </div>
                    </div>
                </div>
                <input type="hidden" ng-model="list.id" />
            </div>
            <button type="submit" class="btn " ng-click="saveSubmit()" style="float: right;">保存</button>
        </div>
    </form>
</modal>
